﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ADO.NET.Samples.Common;

namespace ADO.NET.Samples.Forms
{
    [FormDescription("Using ObjectDataSource", "Demonstrate how to use ObjectDataSource.")]
    public partial class UsingObjectDataSource : Form
    {
        public UsingObjectDataSource()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Binding data
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UsingObjectDataSource_Load(object sender, EventArgs e)
        {
            this.articleCategoryBindingSource.DataSource = DBCommon.GetAllCategories();
        }

    }
}
